import { _decorator, Component, Label, Node, Animation } from 'cc';
import { monster_Refresh_config } from '../manager/AppControll';
const { ccclass, property } = _decorator;

@ccclass('ChangeRefresh')
export class ChangeRefresh extends Component {
    @property(Label)
    mLbLevel: Label = null;
    @property(Label)
    mLbAverageHp: Label = null;
    InitRefreshChange(config: monster_Refresh_config) {
        this.mLbLevel.string = "第" + (config.stageID - 10000) + "阶段";
        this.mLbAverageHp.string = config.stageAverageHp + "";
        this.node.getComponent(Animation).play();
    }
}


